package edu.neu.springcloud.dao;

import edu.neu.springcloud.entity.Commodity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CommodityDao {
    public List<Commodity> list(Commodity commodity);
    public boolean add(Commodity commodity);
    public boolean update(Commodity commodity);
    public boolean delete(Long id);

}
